<?php /* Smarty version Smarty-3.1.6, created on 2018-05-29 16:25:25
         compiled from "D:/phpStudy/PHPTutorial/WWW/myshop/Home/View\User\register.html" */ ?>
<?php /*%%SmartyHeaderCode:3184480695b0bc1eda40a71-31090660%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1b8e19cbe635e0a2778175cab5e918cd5a0a896b' => 
    array (
      0 => 'D:/phpStudy/PHPTutorial/WWW/myshop/Home/View\\User\\register.html',
      1 => 1527582317,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3184480695b0bc1eda40a71-31090660',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5b0bc1edb3e39',
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5b0bc1edb3e39')) {function content_5b0bc1edb3e39($_smarty_tpl) {?> 
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">
	<link href="<?php echo @CSS_PATH;?>
bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo @CSS_PATH;?>
toastr.css" rel="stylesheet">
    <title>注册账号</title>

    <!-- Bootstrap core CSS -->
    <link href="<?php echo @CSS_PATH;?>
bootstrap.min.css" rel="stylesheet">
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="../../assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="jumbotron.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="../../assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
    	function check(){
    		var name=document.getElementById("name").value;
    		$.post("<?php echo @__CONTROLLER__;?>
/is_used","name="+name,function(msg){
    			if(msg=="true"&&name!=''){
    			//document.getElementById('tip').innerHTML=msg;
       				toastr.info("你可以使用此用户名!O(∩_∩)O哈哈~");  
    			}else if(msg=="false"&&name!=''){
    				toastr.error("该用户名已注册o(╥﹏╥)o!");  
    			}
				console.log(msg)
    		});
    	}
    	
  function   _CheckSinglePhone(Phone){   
	  var myreg=/^[1][3,4,5,7,8][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/;   
	  return   myreg.test(Phone);   
  }   
  function _Check(){   
        var  Phone=document.getElementById("phone").value;
        console.log(_CheckSinglePhone(Phone));
        if(!_CheckSinglePhone(Phone))   
      	{   
            alert("输入的手机号码错误");
            document.getElementById("phone").value="";
        }   
  }   
    
    </script>
  </head>

  <body>
	<div class="container">
    <nav class="navbar navbar-inverse">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="<?php echo @__MODULE__;?>
/index/index">首页</a>
        </div>
    </nav>

    <div class="row">
					<div class="col-lg-3">
						<div class="panel panel-primary">
							<div class="panel-heading">
								排行
							</div>
							<div class="panel-body">
								内容
							</div>
						</div>
					</div>
					<div class="col-lg-5">
						<form action="<?php echo @__MODULE__;?>
/User/register" method="post" enctype="multipart/form-data" id="theform">
							<div class="form-group">
								<label for="exampleInputEmail1">用户名：</label>
								<input type="text" class="form-control" id="name" name="name" placeholder="输入用户名.." onblur="check()">
								<span id="tip"></span>
							</div>
							<div class="form-group">
								<label for="exampleInputPassword1">密码:</label>
								<input type="password" class="form-control" id="password" name="password" placeholder="输入密码..">
							</div>
							<div class="form-group">
								<label for="exampleInputPassword1">密码确认:</label>
								<input type="password" class="form-control" id="dd" name="dd" placeholder="再次输入密码..">
							</div>
							<div class="form-group">
								<label for="exampleInputPassword1">邮箱:</label>
								<input type="email" class="form-control" id="email" name="email" placeholder="输入邮箱..">
							</div>
							<div class="form-group">
								<label for="exampleInputPassword1">手机:</label>
								<input type="text" class="form-control" id="phone" name="phone" placeholder="输入手机.." onblur="_Check()">
							</div>			
							<div class="radio">
  							<label>
    							<input type="radio" name="sex" id="nan" value="男">
    								男
  							</label>
  							<label>
    							<input type="radio" name="sex" id="nv" value="女">
    								女
  							</label>
							</div>
							<div class="form-group">
								<label for="touxiang">上传头像：</label>
								<input type="file"  name="touxiang" id="touxiang" >
							</div>
							<button type="submit" class="btn btn-success">注册<span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span></button>
							<a class="btn btn-info" href="<?php echo @__MODULE__;?>
/Index/index" role="button"><span class="glyphicon glyphicon-chevron-left" aria-hidden="true">返回首页</span></a>
						</form>
						
      		</div>
		</div>
</div>  


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
	<script>window.jQuery || document.write('<script src="../assets/js/vendor/jquery.min.js"><\/script>')</script>
  	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  	<script src="<?php echo @JS_PATH;?>
toastr.js"></script>
    
  </body>
</html>
<?php }} ?>